package com.ningju.procurement.core.user.service;

import com.ningju.procurement.common.service.BaseServiceImpl;
import com.ningju.procurement.core.user.bean.User;
import com.ningju.procurement.core.user.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

/**
 * Created by chengxiaoqi on 16/10/4.
 */
@Service
public class UserService extends BaseServiceImpl<UserDao, User> {
    @Autowired
    private UserDao userDao;

    public User save(User user){
        Assert.notNull(user);
        super.save(userDao, user);
        return user;
    }

}
